package com.javacoo.xservice.example;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.javacoo.xservice.base.Constants;
@Slf4j
@EnableScheduling
@SpringBootApplication
@ComponentScan(basePackages = {Constants.CONNON_BASE_SCAN})
@EnableTransactionManagement //启用事务
@MapperScan("com.javacoo.xservice.*.dao")
public class ExampleApplication {

	    /**
	     * Main Start
	     */
	    public static void main(String[] args) {
	        SpringApplication.run(ExampleApplication.class, args);
	        log.info("============= SpringBoot ExampleApplication Start Success =============");
	    }
}
